package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 调度病例详细信息
 * </p>
 *
 * @author zr
 * @since 2020-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_dispatchCase")
@ApiModel(value="DispatchCase对象", description="调度病例详细信息")
public class DispatchCase extends Model<DispatchCase> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "病例标识")
    @TableId(value = "dispatch_caseID", type = IdType.AUTO)
    private Integer dispatchCaseid;

    @ApiModelProperty(value = "患者标识")
    @TableField("patient_id")
    private Integer patientId;

    @ApiModelProperty(value = "调度标识")
    @TableField("dispatchID")
    private Integer dispatchID;

    @ApiModelProperty(value = "GCS评分")
    @TableField("gcs_score")
    private Integer gcsScore;

    @ApiModelProperty(value = "NHISS评分")
    @TableField("nhiss_score")
    private Integer nhissScore;

    @ApiModelProperty(value = "医生姓名")
    @TableField("doctor_name")
    private String doctorName;

    @ApiModelProperty(value = "患者姓名")
    @TableField("patient_name")
    private String patientName;

    @ApiModelProperty(value = "患者性别 0=未知,1=男,2=女")
    @TableField("patient_sex")
    private Integer patientSex;

    @ApiModelProperty(value = "患者年龄")
    @TableField("patient_age")
    private Integer patientAge;

    @ApiModelProperty(value = "患者联系方式")
    @TableField("patient_mobile")
    private String patientMobile;

    @ApiModelProperty(value = "患者住址")
    @TableField("patient_address")
    private String patientAddress;

    @ApiModelProperty(value = "病情评估枚举，0-3轻中重")
    @TableField("patient_level")
    private Integer patientLevel;

    @ApiModelProperty(value = "0草稿，1急救中，2已救治，3已结算")
    @TableField("case_status")
    private Integer caseStatus;

    @ApiModelProperty(value = "主诉情况")
    @TableField("major_case")
    private String majorCase;

    @ApiModelProperty(value = "初步诊断")
    @TableField("base_help")
    private String baseHelp;

    @ApiModelProperty(value = "药敏情况，药敏史")
    @TableField("medicine_sensitive")
    private String medicineSensitive;

    @ApiModelProperty(value = "用药史")
    @TableField("medicine_history")
    private String medicineHistory;

    @ApiModelProperty(value = "血型")
    @TableField("blood_type")
    private String bloodType;

    @ApiModelProperty(value = "既往病史")
    @TableField("treatment_record")
    private String treatmentRecord;

    @ApiModelProperty(value = "家族遗传史")
    @TableField("family_inheritance")
    private String familyInheritance;

    @ApiModelProperty(value = "现病史")
    @TableField("medicine_now")
    private String medicineNow;
/*
    @ApiModelProperty(value = "0,等大等圆，1不等大等圆")
    @TableField("pupil_info")
    private Integer pupilInfo;

    @ApiModelProperty(value = "左瞳孔直径mm")
    @TableField("pupil_distance_left")
    private Integer pupilDistanceLeft;

    @ApiModelProperty(value = "右瞳孔直径mm")
    @TableField("pupil_distance_right")
    private Integer pupilDistanceRight;

    @ApiModelProperty(value = "光反应状态，0正常，1迟钝，3消失")
    @TableField("pupil_status")
    private Integer pupilStatus;

    @ApiModelProperty(value = "意识情况，0清楚，1对声音有反应，2对疼痛有反应，3无反应")
    @TableField("sentence")
    private Integer sentence;

    @ApiModelProperty(value = "气道情况，0通畅，1半阻塞，2阻塞。")
    @TableField("air_info")
    private Integer airInfo;

    @ApiModelProperty(value = "循环，0正常，1脉搏有力，2脉搏快，3脉搏慢，4无脉搏")
    @TableField("circuit")
    private Integer circuit;

    @ApiModelProperty(value = "心率 0齐，1不齐，2消失")
    @TableField("heart_rate")
    private Integer heartRate;

    @ApiModelProperty(value = "胸痛0正常，1反常，2压痛，3隆起，4塌陷")
    @TableField("chest_pain")
    private Integer chestPain;

    @ApiModelProperty(value = "腹部0正常，1膨胀，2板状腹，3反跳痛，4肝大，5脾大")
    @TableField("bellt_status")
    private Integer belltStatus;

    @ApiModelProperty(value = "肠鸣 0正常，1亢进，2减弱，3消失")
    @TableField("intestinal_status")
    private Integer intestinalStatus;

    @ApiModelProperty(value = "肌力，0正常，1减弱，2增强")
    @TableField("muscle_status")
    private Integer muscleStatus;

    @ApiModelProperty(value = "骨折，0无，1有闭合，2有开放")
    @TableField("fracture_status")
    private Integer fractureStatus;
    */

    @ApiModelProperty(value = "体格检查备注")
    @TableField("check_result")
    private String checkResult;

    @ApiModelProperty(value = "抢救措施")
    @TableField("treat_measure")
    private String treatMeasure;

    @ApiModelProperty(value = "用药情况")
    @TableField("medicine")
    private String medicine;

    @ApiModelProperty(value = "出车情况，0送往本院，1送往他院，2未接到患者")
    @TableField("car_case")
    private Integer carCase;

    @ApiModelProperty(value = "0要求送往他院，1患者伤情需要，2拒绝去医院，3患者已离开，4无法联系到患者")
    @TableField("car_case_remark")
    private Integer carCaseRemark;

    @ApiModelProperty(value = "急救报告")
    @TableField("treat_report")
    private String treatReport;

    @ApiModelProperty(value = "会诊记录标识")
    @TableField("treat_recordID")
    private Integer treatRecordid;

    @ApiModelProperty(value = "车牌号")
    @TableField("vin")
    private String vin;

    @ApiModelProperty(value = "车辆信息")
    @TableField("carID")
    private Integer carID;

    @ApiModelProperty(value = "医院")
    @TableField("hospital")
    private String hospital;

    @ApiModelProperty(value = "医院Id")
    @TableField("hospitalID")
    private Integer hospitalID;

    @ApiModelProperty(value = "病例时间")
    @TableField("time")
    private LocalDateTime time;

    @ApiModelProperty(value = "医院标识")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty(value = "调度流水")
    @TableField("flow")
    private String flow;

    @ApiModelProperty(value = "病发地点")
    @TableField("patient_local")
    private String patientLocal;

    @ApiModelProperty(value = "填写状态 0=未填写,1=已填写")
    @TableField("form_status")
    private Integer formStatus;

    @ApiModelProperty(value = "心电截图")
    @TableField("ecg_image")
    private String ecgImage;


    @ApiModelProperty(value = "呼吸机截图")
    @TableField("br_image")
    private String brImage;

    @Override
    protected Serializable pkVal() {
        return this.dispatchCaseid;
    }

}
